Update CORS_ORIGIN_WHITELIST

Brightcells 7 年之前
父節點
當前提交
154554f80c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      kodo/settings.py

+ 4 - 2
kodo/settings.py

@@ -329,11 +329,13 @@ MAKE_PASSWORD_HASHER = ''
329 329
 
330 330
 # CORS
331 331
 # CORS_ORIGIN_ALLOW_ALL = True
332
-CORS_ALLOW_CREDENTIALS = True
333 332
 CORS_ORIGIN_WHITELIST = (
334 333
     'localhost:8000',
335
-    '127.0.0.1:8000'
334
+    '127.0.0.1:8000',
335
+    'localhost:8080',
336
+    '127.0.0.1:8080',
336 337
 )
338
+CORS_ALLOW_CREDENTIALS = True
337 339
 
338 340
 # 错误信息邮件设置
339 341
 # Email address that error messages come from.